package _9练习;

public class ZooManager {
	String name;
	int age;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	
	public ZooManager(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}
	
	public ZooManager() {
	}
	
	public void feed(Animal a) {
		a.eat();
	}
	public void leltShow(Actor a) {
		
		if(a.getClass()==ActedParrot.class)
		{
			Parrot p=(Parrot)a;
			p.say();
		}
		else
		{
			a.play();
		}
		
	}
}
